package com.Tool;

import java.util.Random;

public class RandomStringCreater {
	public static String createWithLettersAndNumbers(int length){
		Random target=new Random();
		char[] numbersAndLetters=("0123456789abcdefghijklmnopqrstuvwxyz" +
                "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ").toCharArray();
		char[] randBuffer = new char[length];
		for(int i=0; i<randBuffer.length; i++)
			randBuffer[i] = numbersAndLetters[target.nextInt(71)];
		return new String(randBuffer);
	}
}
